package com.yfp.operation.service;

import com.yfp.operation.domain.ClientIntegral;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yfp.operation.domain.dto.ClientIntegralListDTO;
import com.yfp.operation.domain.dto.IntegralHistoryDTO;
import com.yfp.operation.domain.vo.ClientIntegralListVO;
import com.yfp.operation.domain.vo.IntegralHistoryVO;

import java.util.List;

/**
* @author admin
* @description 针对表【client_integral(客户积分)】的数据库操作Service
* @createDate 2025-03-05 14:42:03
*/
public interface ClientIntegralService extends IService<ClientIntegral> {

    /**
     * 积分列表
     * @param clientIntegralListDTO
     * @return
     */
    List<ClientIntegralListVO> clientIntegralList(ClientIntegralListDTO clientIntegralListDTO);

    /**
     * 数据补全
     * @param list
     * @return
     */
    List<ClientIntegralListVO> clientIntegralListComplement(List<ClientIntegralListVO> list);

    /**
     * 积分历史记录
     * @param integralHistoryDTO
     * @return
     */
    List<IntegralHistoryVO> integralHistory(IntegralHistoryDTO integralHistoryDTO);

    /**
     * 积分历史记录数据补全
     * @param list
     * @return
     */
    List<IntegralHistoryVO> integralHistoryComplement(List<IntegralHistoryVO> list);

    /**
     * 订单完成赠送积分
     * @param orderId
     */
    void giveIntegral(String orderId);
}
